//请求统一管理
import requests from "@/api/requests";
//初始化数据
export const initDate=()=>requests({url:'/getInit',method:'get'})
// 许愿
export const makeWish=(text,name)=>requests({url:`/insert?text=${text}&name=${name}`,method:'post'})
// 查找我的愿望
export const searchWish=(name)=>requests({url:`/getByName?name=${name}`,method:'post',name})

